package com.sanctity.vo;

import com.sanctity.dto.User;
import com.sanctity.feign.dto.patient.PatientDto;
import com.sanctity.feign.vo.patient.PatientVo;

import java.io.Serializable;
import java.math.BigDecimal;

/***
 * @belongsProject spring-cloud
 * @description <订单及用户信息>
 * @author Sanct
 * @version 1.0.0
 * @create 2024/1/16 21:06
 **/
public class OrderUserVo implements Serializable {

    private Long id;

    private Long userId;

    private String name;

    private BigDecimal price;

    private Integer num;

    private User user;

    private PatientVo patientVo;
    public OrderUserVo() {
    }

    public OrderUserVo(Long id, Long userId, String name, BigDecimal price, Integer num) {
        this.id = id;
        this.userId = userId;
        this.name = name;
        this.price = price;
        this.num = num;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public PatientVo getPatientVo() {
        return patientVo;
    }

    public void setPatientVo(PatientVo patientVo) {
        this.patientVo = patientVo;
    }

    @Override
    public String toString() {
        return "OrderUserVo{" +
                "id=" + id +
                ", userId=" + userId +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", user=" + user +
                ", patient=" + patientVo +
                '}';
    }
}
